import * as ax from './request';

export const url = ax.url + '/op'
// export const url = ax.url

export const getMemberInfoList = (params) => {
    return ax.g(url + '/member/infos', params)
}

export const getMemberInfo = (params) => {
    return ax.g(url + '/member/infos/' + params.id, params)
}

export const createMemberInfo = (params) => {
    return ax.p(url + '/member/infos', params)
}

export const updateMemberInfo = (params) => {
    return ax.u(url + '/member/infos/' + params.id, params)
}

export const delMemberInfo = (params) => {
    return ax.d(url + '/member/infos/' + params.id, params)
}

export const getMemberSelf = () => {
  return ax.g(url + '/member/infos/self')
}